﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YXShop.Model.Stocks
{
    /// <summary>
    /// 条码类，和每件商品对应，单件商品对象类
    /// </summary>
    [Serializable]
    public class BarCode
    {
        public BarCode()
        { }
        #region Model
        private int _id;
        private string _barcode;
        private int _productid;
        private StockTypeEnum _stocktypeid;
        private int _stockid;
        private Nullable<DateTime> _intime = null;
        private Nullable<DateTime> _outtime = null;
        private ProductStateEnum _stateid;
        private string _notes;
        /// <summary>
        /// 主键id
        /// </summary>
        public int ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 条形码
        /// </summary>
        public string Barcode
        {
            set { _barcode = value; }
            get { return _barcode; }
        }
        /// <summary>
        /// 商品id
        /// </summary>
        public int Productid
        {
            set { _productid = value; }
            get { return _productid; }
        }
        /// <summary>
        /// 仓库类型 枚举类型
        /// </summary>
        public StockTypeEnum StockTypeID
        {
            set { _stocktypeid = value; }
            get { return _stocktypeid; }
        }
        /// <summary>
        /// 仓库ID  中央仓库默认为1
        /// </summary>
        public int StockID
        {
            set { _stockid = value; }
            get { return _stockid; }
        }
        /// <summary>
        /// 入库时间 
        /// </summary>
        public Nullable<DateTime> InTime
        {
            set { _intime = value; }
            get { return _intime; }
        }
        /// <summary>
        /// 出库时间
        /// </summary>
        public Nullable<DateTime> OutTime
        {
            set { _outtime = value; }
            get { return _outtime; }
        }
        /// <summary>
        /// 商品状态 为枚举类型
        /// </summary>
        public ProductStateEnum StateID
        {
            set { _stateid = value; }
            get { return _stateid; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string Notes
        {
            set { _notes = value; }
            get { return _notes; }
        }
        #endregion Model
    }
}
